<template>
    <div>
       姓名：{{ name }}
    </div>
    <div>
        年龄： {{ age}}
    </div>
</template>
<script setup>
import { ref } from 'vue'

// const 数据名 = 数据值
const name = ref("ref")
const age = 0 

console.log("name: ",name, name.value);

setTimeout(()=>{
    name.value = "data ref new value"
    console.log("name: ",name);
}, 3000)

</script>
